bits.h -> bitops.h, start bitops refactor: target all implem. visible

This commit is contained in:
2024-01-03 19:13:44 +01:00
parent b63a5cceda
commit 0dcca10559
13 changed files with 55 additions and 41 deletions

View File

@@ -1,6 +1,6 @@
/* bits.c - information about bitops implementation.
/* bitops.c - information about bitops implementation.
*
* Copyright (C) 2021-2022 Bruno Raoult ("br")
* Copyright (C) 2021-2024 Bruno Raoult ("br")
* Licensed under the GNU General Public License v3.0 or later.
* Some rights reserved. See COPYING.
*
@@ -11,7 +11,7 @@
*
*/
#include "bits.h"
#include "bitops.h"
#include "debug.h"
void print_bitops_impl(void)

View File

@@ -3,9 +3,9 @@
/*
* Taken from linux kernel: lib/list_sort.c
*/
#include "br.h"
#include "list_sort.h"
#include "list.h"
#include "bits.h"
#include "likely.h"
/*

View File

@@ -1,6 +1,6 @@
/* pjwhash.c - PJW hash function.
*
* Copyright (C) 2021-2022 Bruno Raoult ("br")
* Copyright (C) 2021-2024 Bruno Raoult ("br")
* Licensed under the GNU General Public License v3.0 or later.
* Some rights reserved. See COPYING.
*
@@ -13,8 +13,5 @@
#define _pjw_inline extern
//#include "bits.h"
//extern unsigned int pjwhash (const void* key, uint length);
#include "pjwhash.h"
#include "pjwhash-inline.h"

View File

@@ -1,6 +1,6 @@
/* pool.c - A simple pool manager.
*
* Copyright (C) 2021-2022 Bruno Raoult ("br")
* Copyright (C) 2021-2024 Bruno Raoult ("br")
* Licensed under the GNU General Public License v3.0 or later.
* Some rights reserved. See COPYING.
*
@@ -17,10 +17,10 @@
#include <stdlib.h>
#include <errno.h>
#include "br.h"
#include "list.h"
#include "pool.h"
#include "debug.h"
#include "bits.h"
void pool_stats(pool_t *pool)
{