dawn-cmake/src
Ben Clayton a75205265e Add src/utils/math.h
Move the RoundUp() and IsPowerOfTwo() methods from Resolver.cc to this file.

Add tests

Change-Id: Ib7af53dfa5e69083ec4fc2484da92a84c9468818
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/44682
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2021-03-15 13:37:41 +00:00
..
ast Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
diagnostic Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
inspector Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
reader Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
resolver Add src/utils/math.h 2021-03-15 13:37:41 +00:00
semantic Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
transform Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
type Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
utils Add src/utils/math.h 2021-03-15 13:37:41 +00:00
validator Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
writer Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
BUILD.gn Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
CMakeLists.txt Add src/utils/math.h 2021-03-15 13:37:41 +00:00
block_allocator.h Add tint::BlockAllocator<T> 2021-01-21 15:30:10 +00:00
block_allocator_test.cc Add tint::BlockAllocator<T> 2021-01-21 15:30:10 +00:00
castable.cc Pull Is() out of castable and into a new TypeInfo 2021-03-02 20:30:08 +00:00
castable.h Fix VS clang-cl build 2021-03-09 21:51:50 +00:00
castable_test.cc Rename TINT_INSTANTIATE_CLASS_ID() 2021-03-02 20:51:18 +00:00
clone_context.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
clone_context.h Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
clone_context_test.cc ast: Replace IsValid() with TINT_ASSERT() 2021-03-10 11:41:49 +00:00
debug.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
debug.h Add TINT_ASSERT() 2021-03-09 13:52:18 +00:00
debug_test.cc Add TINT_ASSERT() 2021-03-09 13:52:18 +00:00
demangler.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
demangler.h Simplify calls to ast::Node::[to_]str() 2021-01-29 11:22:40 +00:00
demangler_test.cc Demangler: Change signature of primary Demangle() function 2021-01-26 16:57:10 +00:00
intrinsic_table.cc Flatten ast::Decoration class hierarchy 2021-03-11 17:39:32 +00:00
intrinsic_table.h Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
intrinsic_table_test.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
program.cc Resolver: Place into a resolver namespace 2021-03-09 15:08:48 +00:00
program.h Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
program_builder.cc ast: Replace IsValid() with TINT_ASSERT() 2021-03-10 11:41:49 +00:00
program_builder.h Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
program_builder_test.cc Have ProgramBuilder::Func() register the function 2021-02-02 14:29:15 +00:00
program_test.cc ast: Replace IsValid() with TINT_ASSERT() 2021-03-10 11:41:49 +00:00
scope_stack.h Add std::hash<tint::Symbol> specialization 2021-01-11 22:02:42 +00:00
scope_stack_test.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
source.cc Source: Restructure Source::File 2021-02-18 21:40:19 +00:00
source.h Fix VS clang-cl build 2021-03-09 21:51:50 +00:00
symbol.cc Add a symbol table. 2020-12-10 16:56:02 +00:00
symbol.h Add std::hash<tint::Symbol> specialization 2021-01-11 22:02:42 +00:00
symbol_table.cc Add SymbolTable::New() 2021-02-11 14:54:41 +00:00
symbol_table.h Add SymbolTable::New() 2021-02-11 14:54:41 +00:00
symbol_table_test.cc Add SymbolTable::New() 2021-02-11 14:54:41 +00:00
symbol_test.cc Add a symbol table. 2020-12-10 16:56:02 +00:00
test_main.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
traits.h Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
traits_test.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00