From 42d3fc045e33f6d8bbf61eb0fb3ce2a04713505e Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 29 May 2008 20:52:43 +0000 Subject: [PATCH] Added implementations for the __fssh_swap_int*() functions. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25713 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/Jamfile | 1 + src/tools/fs_shell/byte_order.cpp | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/tools/fs_shell/byte_order.cpp diff --git a/src/tools/fs_shell/Jamfile b/src/tools/fs_shell/Jamfile index 1f4ee179d2..4e84d63606 100644 --- a/src/tools/fs_shell/Jamfile +++ b/src/tools/fs_shell/Jamfile @@ -32,6 +32,7 @@ if $(HOST_PLATFORM_BEOS_COMPATIBLE) { BuildPlatformStaticLibrary fs_shell.a : atomic.cpp block_cache.cpp + byte_order.cpp command_cp.cpp disk_device_manager.cpp driver_settings.cpp diff --git a/src/tools/fs_shell/byte_order.cpp b/src/tools/fs_shell/byte_order.cpp new file mode 100644 index 0000000000..ee6c33dfa1 --- /dev/null +++ b/src/tools/fs_shell/byte_order.cpp @@ -0,0 +1,29 @@ +/* + * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. + * Distributed under the terms of the MIT License. + */ + +#include "compatibility.h" + +#include + +#include "fssh_byte_order.h" + + +uint16_t +__fssh_swap_int16(uint16_t value) +{ + return __swap_int16(value); +} + +uint32_t +__fssh_swap_int32(uint32_t value) +{ + return __swap_int32(value); +} + +uint64_t +__fssh_swap_int64(uint64_t value) +{ + return __swap_int64(value); +}