Skip to content

Commit

Permalink
Add bitFloorForType.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaxyM authored Sep 6, 2024
1 parent 5738987 commit a6de3f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/crap/bit
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "bit.d/bitceilfortype.h"
#include "bit.d/bitceiltype.h"
#include "bit.d/bitceilvalue.h"
#include "bit.d/bitfloorfortype.h"
#include "bit.d/bitfloortype.h"
#include "bit.d/bitfloorvalue.h"
#include "bit.d/bitwidthtype.h"
Expand Down
14 changes: 14 additions & 0 deletions include/crap/bit.d/bitfloorfortype.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef CRAP_BIT_BITFLOORFORTYPE
#define CRAP_BIT_BITFLOORFORTYPE

#include "bitfloorvalue.h"

namespace crap
{
template <class Type> struct bitFloorForType
{
template <Type Value> using type = bitFloorValue<Type, Value>;
};
}
#endif

0 comments on commit a6de3f5

Please sign in to comment.