-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
227 changed files
with
6,816 additions
and
2,546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,10 @@ | |
----------- | ||
Bfdev Designer Group | ||
|
||
Name : ffashion | ||
Email : [email protected] | ||
Represent : global | ||
|
||
Name : John Sanpe | ||
Email : [email protected] | ||
Represent : global | ||
Represent : framework | ||
|
||
Name : ffashion | ||
Email : [email protected] | ||
Represent : array, cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,21 @@ | |
# Copyright(c) 2023 John Sanpe <[email protected]> | ||
# | ||
|
||
file(GLOB BFDEV_HEADER | ||
${BFDEV_HEADER_PATH}/bfdev/*.h | ||
) | ||
|
||
file(GLOB BFDEV_ASM_HEADER | ||
${BFDEV_HEADER_PATH}/bfdev/asm-generic/*.h | ||
) | ||
|
||
file(GLOB BFDEV_ARCH_ASM_HEADER | ||
${BFDEV_ARCH_HEADER_PATH}/bfdev/asm/*.h | ||
) | ||
|
||
file(GLOB BFDEV_GENERATED_HEADER | ||
${BFDEV_GENERATED_PATH}/*.h | ||
) | ||
|
||
include(${BFDEV_ARCH_PATH}/build.cmake) | ||
include(${BFDEV_SOURCE_PATH}/build.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,17 @@ | |
# Copyright(c) 2023 ffashion <[email protected]> | ||
# | ||
|
||
add_subdirectory(action) | ||
add_subdirectory(allocator) | ||
add_subdirectory(arc4) | ||
add_subdirectory(array) | ||
add_subdirectory(base32) | ||
add_subdirectory(base64) | ||
add_subdirectory(bfdev) | ||
add_subdirectory(bloom) | ||
add_subdirectory(btree) | ||
add_subdirectory(cache) | ||
add_subdirectory(circle) | ||
add_subdirectory(crc) | ||
add_subdirectory(fifo) | ||
add_subdirectory(fsm) | ||
|
@@ -25,11 +28,15 @@ add_subdirectory(list) | |
add_subdirectory(log) | ||
add_subdirectory(log2) | ||
add_subdirectory(matrix) | ||
add_subdirectory(minpool) | ||
add_subdirectory(mpi) | ||
add_subdirectory(notifier) | ||
add_subdirectory(once) | ||
add_subdirectory(radix) | ||
add_subdirectory(rbtree) | ||
add_subdirectory(ringbuf) | ||
add_subdirectory(segtree) | ||
add_subdirectory(skiplist) | ||
add_subdirectory(slist) | ||
add_subdirectory(sort) | ||
add_subdirectory(textsearch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
/action-simple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# | ||
# Copyright(c) 2023 ffashion <[email protected]> | ||
# | ||
|
||
add_executable(action-simple simple.c) | ||
target_link_libraries(action-simple bfdev) | ||
add_test(action-simple action-simple) | ||
|
||
if(${CMAKE_PROJECT_NAME} STREQUAL "bfdev") | ||
install(FILES | ||
simple.c | ||
DESTINATION | ||
${CMAKE_INSTALL_DOCDIR}/examples/action | ||
) | ||
|
||
install(TARGETS | ||
action-simple | ||
DESTINATION | ||
${CMAKE_INSTALL_DOCDIR}/bin | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
/* | ||
* Copyright(c) 2023 John Sanpe <[email protected]> | ||
*/ | ||
|
||
#define MODULE_NAME "action-simple" | ||
#define bfdev_log_fmt(fmt) MODULE_NAME ": " fmt | ||
|
||
#include <stdio.h> | ||
#include <bfdev/action.h> | ||
#include <bfdev/log.h> | ||
|
||
static int | ||
test_action(void *pdata) | ||
{ | ||
bfdev_log_info("%s\n", (char *)pdata); | ||
return 0; | ||
} | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
BFDEV_DEFINE_ACTION(action, test_action, NULL); | ||
int retval; | ||
|
||
bfdev_action_update(&action, "hello world"); | ||
retval = bfdev_action_call(&action); | ||
if (retval) | ||
return retval; | ||
|
||
bfdev_action_update(&action, "wow bfdev"); | ||
retval = bfdev_action_call(&action); | ||
if (retval) | ||
return retval; | ||
|
||
return 0; | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
/arc4-bandwidth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# | ||
# Copyright(c) 2024 John Sanpe <[email protected]> | ||
# | ||
|
||
add_executable(arc4-bandwidth bandwidth.c) | ||
target_link_libraries(arc4-bandwidth bfdev) | ||
add_test(arc4-bandwidth arc4-bandwidth) | ||
|
||
if(${CMAKE_PROJECT_NAME} STREQUAL "bfdev") | ||
install(FILES | ||
bandwidth.c | ||
DESTINATION | ||
${CMAKE_INSTALL_DOCDIR}/examples/arc4 | ||
) | ||
|
||
install(TARGETS | ||
arc4-bandwidth | ||
DESTINATION | ||
${CMAKE_INSTALL_DOCDIR}/bin | ||
) | ||
endif() |
Oops, something went wrong.