summaryrefslogtreecommitdiff
path: root/innobase/mem
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2004-03-12 22:55:46 +0200
committerunknown <marko@hundin.mysql.fi>2004-03-12 22:55:46 +0200
commit635b9d78580fc6f9429edc0c9e99a5a98f1c0e14 (patch)
tree48ece7d221b8f8694f671b2338767ed187262074 /innobase/mem
parent454b01928abfe240be63b0bf6fc2e7bbd4303a1f (diff)
downloadmariadb-git-635b9d78580fc6f9429edc0c9e99a5a98f1c0e14.tar.gz
InnoDB: remove redundant functions mach_write() and mach_read()
innobase/include/mach0data.h: Remove mach_write() and mach_read() innobase/include/mach0data.ic: Remove mach_write() and mach_read() innobase/mem/mem0dbg.c: Replace mach_write() with mach_write_to_4() Replace mach_read() with mach_read_from_4()
Diffstat (limited to 'innobase/mem')
-rw-r--r--innobase/mem/mem0dbg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/innobase/mem/mem0dbg.c b/innobase/mem/mem0dbg.c
index f66f7890fe2..d6a3d03dd07 100644
--- a/innobase/mem/mem0dbg.c
+++ b/innobase/mem/mem0dbg.c
@@ -73,37 +73,37 @@ mem_field_header_set_len(byte* field, ulint len)
{
ut_ad(len >= 0);
- mach_write(field - 2 * sizeof(ulint), len);
+ mach_write_to_4(field - 2 * sizeof(ulint), len);
}
ulint
mem_field_header_get_len(byte* field)
{
- return(mach_read(field - 2 * sizeof(ulint)));
+ return(mach_read_from_4(field - 2 * sizeof(ulint)));
}
void
mem_field_header_set_check(byte* field, ulint check)
{
- mach_write(field - sizeof(ulint), check);
+ mach_write_to_4(field - sizeof(ulint), check);
}
ulint
mem_field_header_get_check(byte* field)
{
- return(mach_read(field - sizeof(ulint)));
+ return(mach_read_from_4(field - sizeof(ulint)));
}
void
mem_field_trailer_set_check(byte* field, ulint check)
{
- mach_write(field + mem_field_header_get_len(field), check);
+ mach_write_to_4(field + mem_field_header_get_len(field), check);
}
ulint
mem_field_trailer_get_check(byte* field)
{
- return(mach_read(field +
+ return(mach_read_from_4(field +
mem_field_header_get_len(field)));
}