@@ -40,7 +40,7 @@ module. */
4040
4141/*******************************************************/ /**
4242The following function is used to store data in one byte. */
43- UNIV_INLINE
43+ inline __attribute__(( always_inline ))
4444void
4545mach_write_to_1 (
4646/*============*/
@@ -49,15 +49,15 @@ mach_write_to_1(
4949/** The following function is used to fetch data from one byte.
5050@param[in] b pointer to a byte to read
5151@return ulint integer, >= 0, < 256 */
52- UNIV_INLINE
52+ inline __attribute__(( always_inline ))
5353uint8_t
5454mach_read_from_1 (
5555 const byte * b )
5656 MY_ATTRIBUTE ((warn_unused_result ));
5757/*******************************************************/ /**
5858The following function is used to store data in two consecutive
5959bytes. We store the most significant byte to the lower address. */
60- UNIV_INLINE
60+ inline __attribute__(( always_inline ))
6161void
6262mach_write_to_2 (
6363/*============*/
@@ -68,7 +68,7 @@ mach_write_to_2(
6868bytes. The most significant byte is at the lowest address.
6969@param[in] b pointer to 2 bytes where to store
7070@return 2-byte integer, >= 0, < 64k */
71- UNIV_INLINE
71+ inline __attribute__(( always_inline ))
7272uint16_t
7373mach_read_from_2 (
7474 const byte * b )
@@ -80,7 +80,7 @@ The following function is used to convert a 16-bit data item
8080to the canonical format, for fast bytewise equality test
8181against memory.
8282@return 16-bit integer in canonical format */
83- UNIV_INLINE
83+ inline __attribute__(( always_inline ))
8484uint16
8585mach_encode_2 (
8686/*==========*/
@@ -91,7 +91,7 @@ The following function is used to convert a 16-bit data item
9191from the canonical format, for fast bytewise equality test
9292against memory.
9393@return integer in machine-dependent format */
94- UNIV_INLINE
94+ inline __attribute__(( always_inline ))
9595ulint
9696mach_decode_2 (
9797/*==========*/
@@ -118,7 +118,7 @@ mach_read_from_3(
118118/*******************************************************/ /**
119119The following function is used to store data in four consecutive
120120bytes. We store the most significant byte to the lowest address. */
121- UNIV_INLINE
121+ inline __attribute__(( always_inline ))
122122void
123123mach_write_to_4 (
124124/*============*/
@@ -128,7 +128,7 @@ mach_write_to_4(
128128bytes. The most significant byte is at the lowest address.
129129@param[in] b pointer to 4 bytes to read
130130@return 32 bit integer */
131- UNIV_INLINE
131+ inline __attribute__(( always_inline ))
132132uint32_t
133133mach_read_from_4 (
134134 const byte * b )
@@ -200,7 +200,7 @@ mach_read_from_7(
200200/*******************************************************/ /**
201201The following function is used to store data in 8 consecutive
202202bytes. We store the most significant byte to the lowest address. */
203- UNIV_INLINE
203+ inline __attribute__(( always_inline ))
204204void
205205mach_write_to_8 (
206206/*============*/
@@ -210,7 +210,7 @@ mach_write_to_8(
210210The following function is used to fetch data from 8 consecutive
211211bytes. The most significant byte is at the lowest address.
212212@return 64-bit integer */
213- UNIV_INLINE
213+ inline __attribute__(( always_inline ))
214214ib_uint64_t
215215mach_read_from_8 (
216216/*=============*/
@@ -301,7 +301,7 @@ mach_read_from_n_little_endian(
301301/** Reads a 64 bit stored in big endian format
302302@param buf From where to read
303303@return uint64_t */
304- UNIV_INLINE
304+ inline __attribute__(( always_inline ))
305305uint64_t
306306mach_read_uint64_little_endian (const byte * buf )
307307{
@@ -330,15 +330,15 @@ mach_write_to_n_little_endian(
330330/*********************************************************/ /**
331331Reads a ulint stored in the little-endian format.
332332@return unsigned long int */
333- UNIV_INLINE
333+ inline __attribute__(( always_inline ))
334334ulint
335335mach_read_from_2_little_endian (
336336/*===========================*/
337337 const byte * buf ) /*!< in: from where to read */
338338 MY_ATTRIBUTE ((warn_unused_result ));
339339/*********************************************************/ /**
340340Writes a ulint in the little-endian format. */
341- UNIV_INLINE
341+ inline __attribute__(( always_inline ))
342342void
343343mach_write_to_2_little_endian (
344344/*==========================*/
0 commit comments